<%@ page import="cn.kgc.pojo.Users" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        String userName = request.getParameter("userName");
        if (userName==null || userName.equals("")){
            response.sendRedirect("login.jsp");
        }else {
            //登陆成功
            Users users = new Users();
            users.setUserName(userName);
            session.setAttribute("users", users);
            response.sendRedirect("online.jsp");
        }
    %>
</body>
</html>
